package com.servicesManagement.model;
// Generated Dec 13, 2014 11:53:18 AM by Hibernate Tools 3.2.1.GA

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.AssociationOverride;
import javax.persistence.AssociationOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * AspectListGroupConf generated by hbm2java
 */
@Entity(name = "ALGC")
@Table(name = "ASPECT_LIST_GROUP_CONF", schema = "SANKAR")
@AssociationOverrides({
    @AssociationOverride(name = "id.aspectListGroup",
    joinColumns =
    @JoinColumn(name = "ASPECT_LIST_GROUP_ID")),
    @AssociationOverride(name = "id.aspectList",
    joinColumns =
    @JoinColumn(name = "ASPECT_LIST_ID"))})
public class AspectListGroupConf implements java.io.Serializable {

    private AspectListGroupConfId id;
    @JsonIgnore
    private AspectListGroup aspectListGroup;
    @JsonIgnore
    private AspectList aspectList;
    private BigDecimal changedByUserId;
    private Date changedDate;
    private BigDecimal createdByUserId;
    private Date createdDate;
    private BigDecimal displayOrder;

    public AspectListGroupConf() {
    }

   

    @EmbeddedId
    public AspectListGroupConfId getId() {
        return this.id;
    }

    public void setId(AspectListGroupConfId id) {
        this.id = id;
    }

    @Transient
    public AspectListGroup getAspectListGroup() {
        return getId().getAspectListGroup();
    }

    public void setAspectListGroup(AspectListGroup aspectListGroup) {
        this.getId().setAspectListGroup(aspectListGroup);
    }

    @Transient
    public AspectList getAspectList() {
        return getId().getAspectList();
    }

    public void setAspectList(AspectList aspectList) {
        this.getId().setAspectList(aspectList);
    }

    @Column(name = "CHANGED_BY_USER_ID")
    public BigDecimal getChangedByUserId() {
        return this.changedByUserId;
    }

    public void setChangedByUserId(BigDecimal changedByUserId) {
        this.changedByUserId = changedByUserId;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "CHANGED_DATE", length = 7)
    public Date getChangedDate() {
        return this.changedDate;
    }

    public void setChangedDate(Date changedDate) {
        this.changedDate = changedDate;
    }

    @Column(name = "CREATED_BY_USER_ID")
    public BigDecimal getCreatedByUserId() {
        return this.createdByUserId;
    }

    public void setCreatedByUserId(BigDecimal createdByUserId) {
        this.createdByUserId = createdByUserId;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "CREATED_DATE", length = 7)
    public Date getCreatedDate() {
        return this.createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    @Column(name = "DISPLAY_ORDER")
    public BigDecimal getDisplayOrder() {
        return this.displayOrder;
    }

    public void setDisplayOrder(BigDecimal displayOrder) {
        this.displayOrder = displayOrder;
    }

    @Override
    public String toString() {
        return "AspectListGroupConf{" + "id=" + id + ", changedByUserId=" + changedByUserId + ", changedDate=" + changedDate + ", createdByUserId=" + createdByUserId + ", createdDate=" + createdDate + ", displayOrder=" + displayOrder + '}';
    }
    
    
}
